package com.epam.webproject.restaurant.jaxb.utils;

import com.epam.webproject.restaurant.jaxb.entities.Bill;

import java.util.Comparator;

/**
 * Created with IntelliJ IDEA.
 * User: Yelena_M
 * Date: 12.09.13
 * Time: 15:57
 * To change this template use File | Settings | File Templates.
 */
public class ComparatorBillsByAmount implements Comparator<Bill> {

    @Override
    public int compare(Bill o1, Bill o2) {
        return o1.getAmount() - o2.getAmount();
    }
}
